package me.minicoral.service.impl;

import java.util.List;

import me.minicoral.action.User;
import me.minicoral.dao.UserDao;
import me.minicoral.dao.impl.UserDaoImpl;
import me.minicoral.service.UserService;

public class UserServiceImpl implements UserService
{

	private UserDao dao = new UserDaoImpl();
	@Override
	public User findUserByUsername(String username)
	{
		return dao.findUserByUsername(username);
	}
	
	@Override
	public int addUser(User user)
	{
		return dao.addUser(user);
	}

	@Override
	public User findUserByID(String userid)
	{
		
		return dao.findUserByID(userid);
	}

	@Override
	public List<User> findAllUser()
	{
		return dao.findAllUser();
	}
}
